<?php
/**
 * Hashtable
 * 
 * @category	Util
 * @package		dayscript.util
 * @subpackage	
 * @author		Nelson Daza <ndaza@dayscript.com>
 * @copyright	2009 Dayscript Ltda.
 * @license		
 * @version		1.0
 * @version		$Revision: 0 $
 * @filesource	
 * @link		http://www.dayscript.com
 * @link		{docsLink}
 * @uses		
 * @since		1.0
 * @modifiedby	$LastChangedBy: Nelson Daza $
 * @modified	$Date: 2009-08-13 $
 */

namespace dayscript\util;

/**
 * Hashtable
 *
 * General Hashtable implementation
 * 
 * @category	Util
 * @package		dayscript.util
 * @subpackage	
 * @author		Nelson Daza <ndaza@dayscript.com>
 * @copyright	2009 Dayscript Ltda.
 * @license		
 * @version		1.0
 * @link		http://www.dayscript.com
 * @link		{docsLink}
 * @uses		\dayscript\Map
 * @since		1.0
 * @modifiedby	$LastChangedBy: Nelson Daza $
 * @modified	$Date: 2009-08-13 $
 */
class Hashtable extends \dayscript\Map	{
	/**
	 * Constructs a new hashtable with the same mappings as the given Map.
	 *
	 * @param \dayscript\Map $map
	 * @return Hashtable
	 */
	public function __construct( \dayscript\Map $map = null )	{
		parent::__construct( $map );
	}
	/**
	 * Whether or not a value exists.
	 *
	 * @param mixed $value
	 * @param boolean $strict
	 * @return boolean
	 */
	public function contains( $value, $strict = false )	{
		return parent::containsValue( $value, $strict );
	}
	/**
	 * Returns an array of the values contained in this hashtable.
	 *
	 * @return array $values
	 */
	public function elements( )	{
		return parent::values( );
	}
}